package command;

import command.linux.LinuxCommandFactory;
import command.mac.MacCommandFactory;

import config.Helper;

public abstract class CommandFactory {
	
	private static CommandFactory _instance;
	
	public abstract void rebootSystem();
	public abstract void restartPlayer();
	public abstract void restartTeamViewer();
	public abstract void startTeamViewer();
	
	public static CommandFactory getInstance() {
		if(_instance==null) {
			 if(Helper.getPlatform()==Helper.MAC_OS){
				_instance = new MacCommandFactory();
			} else {
				_instance = new LinuxCommandFactory();
			}
		}
		return _instance;
	}
}
